--[[
    1.使用数据库操作库:LuaSQL
    2.下载地址：https://luarocks.github.io/luarocks/releases/
    3.安装不同的数据库驱动
        luarocks install luasql-sqlite3
        luarocks install luasql-postgres
        luarocks install luasql-mysql
        luarocks install luasql-sqlite
        luarocks install luasql-odbc
    4.
]]

sqlite3 = require("luasql.sqlite3")
db = sqlite3.open("001.db", sqlite3.OPEN_READWRITE + sqlite3.OPEN_CREATE + sqlite3.OPEN_SHAREDCACHE)

mdb={}
mdb.db = "sqlite3"
mdb.dbname="001.db"